package org.piggy.core.disruptor;

import com.lmax.disruptor.EventTranslatorOneArg;
import org.piggy.core.netty.wrapper.HttpRequestWrapper;

public class DisruptorEventTranslatorOneArg implements EventTranslatorOneArg<DisruptorEvent, HttpRequestWrapper> {
    @Override
    public void translateTo(DisruptorEvent event, long sequence, HttpRequestWrapper httpRequestWrapper) {
        event.setSequence(sequence);
        event.setHttpRequestWrapper(httpRequestWrapper);
    }
}
